Returns a String, containing the data that is available in the internal queue without removing it. The optional Encoding parameter enables you to specify the text encoding of the data to be returned.
Syntax |
|---|
|
result = TCPSocket.Lookahead( [Encoding] ) |
Parameters |
|
|---|---|
|
Encoding |
TextEncoding (Optional) |
Return Value |
|
|---|---|
|
Result |
|
Notes
Use the Encodings object to specify an encoding.